package cn.edu.scau.cmi.zhuangziyuan.singleton;
public class Simpleton {
	private static Simpleton instance;
	private String name;
	private Simpleton(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public static Simpleton getInstance (String name) {
		if(instance == null && !name.equals(null)) {
			instance = new Simpleton(name);
		}
		return instance;
	}
}